﻿using System;
using Microsoft.EntityFrameworkCore;
using WLWZGao6.Domain.Model;


namespace WLWZGao6.EndCode
{
    public class UserDataAccess : DbContext
    {
        public UserDataAccess(DbContextOptions<UserDataAccess> options) : base(options)
        {

        }
        public DbSet<User> User { get; set; }//用户表
        public DbSet<Role> Role { get; set; }//角色表
        public DbSet<UserRole> userRole { get; set; }//角色权限表
        public DbSet<Perm> Perm { get; set; }//权限表
        public DbSet<RolePerm> RolePerm { get; set; }//权限表
    }
}
